import { ref } from 'vue'
import { defineStore } from 'pinia'
import type { User } from '../config/data/data'

export const useUserStore = defineStore('userStore', () => {
  //测试个人用户信息
  const userInfo = ref<User>({
    uid: 1001,
    username: '不想说话而已',
    avatar: 'https://www.lyzhnb.top/0ba451a8-b943-45f0-a7f6-b2a086ffbaf8',
  })


  return {
    userInfo
  }
})
